package com.hrzyit.whistle.cases.ui.adapter

import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.hrzyit.base.ui.adapter.BaseRecyclerViewAdapter
import com.hrzyit.whistle.cases.R
import com.hrzyit.whistle.cases.data.bean.SysDictEntity

/**
 *
 * @author YangWei
 * @date 2019/4/26
 */
class RejectReasonAdapter(mContext: Context) :
    BaseRecyclerViewAdapter<SysDictEntity, RejectReasonAdapter.ViewHolder>(mContext) {
    /**
     * 创建视图持有者，并返回 View
     */
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        val view = LayoutInflater.from(mContext)
            .inflate(R.layout.item_select_reject_reason, parent, false)
        return ViewHolder(view)

    }

    /**
     * 绑定视图组件数据及事件
     */
    override fun onBindViewHolder(holder: ViewHolder, position: Int) {

        super.onBindViewHolder(holder, position)
    }

    class ViewHolder(view: View) : RecyclerView.ViewHolder(view)
}

